package com.douding.server.dto;

        import java.util.Date;
        import com.fasterxml.jackson.annotation.JsonFormat;

public class FileDto {

    /**
    * id
    */
    private String id;

    /**
    * 相对路径
    */
    private String path;

    /**
    * 文件名
    */
    private String name;

    /**
    * 后缀
    */
    private String suffix;

    /**
    * 大小|字节B
    */
    private Integer size;

    /**
    * 用途|枚举[FileUseEnum]：course("C", "讲师"), TEACHER("T", "课程")
    */
    private String use;

    private Integer shardIndex;

    @Override
    public String toString() {
        return "FileDto{" +
                "id='" + id + '\'' +
                ", path='" + path + '\'' +
                ", name='" + name + '\'' +
                ", suffix='" + suffix + '\'' +
                ", size=" + size +
                ", use='" + use + '\'' +
                ", shardIndex=" + shardIndex +
                ", shard='" + shard + '\'' +
                ", shardSize=" + shardSize +
                ", shardTotal=" + shardTotal +
                ", key='" + key + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }

    public String getShard() {
        return shard;
    }

    public void setShard(String shard) {
        this.shard = shard;
    }

    //   base64 字符串
    private String  shard;

    public Integer getShardIndex() {
        return shardIndex;
    }

    public void setShardIndex(Integer shardIndex) {
        this.shardIndex = shardIndex;
    }


    public Integer getShardSize() {
        return shardSize;
    }

    public void setShardSize(Integer shardSize) {
        this.shardSize = shardSize;
    }

    public Integer getShardTotal() {
        return shardTotal;
    }

    public void setShardTotal(Integer shardTotal) {
        this.shardTotal = shardTotal;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    private Integer shardSize;

    private Integer shardTotal;

    private String key;

    /**
    * 创建时间
    */
        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdAt;

    /**
    * 修改时间
    */
        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updatedAt;

    public String getId() {
    return id;
    }

    public void setId(String id) {
    this.id = id;
    }

    public String getPath() {
    return path;
    }

    public void setPath(String path) {
    this.path = path;
    }

    public String getName() {
    return name;
    }

    public void setName(String name) {
    this.name = name;
    }

    public String getSuffix() {
    return suffix;
    }

    public void setSuffix(String suffix) {
    this.suffix = suffix;
    }

    public Integer getSize() {
    return size;
    }

    public void setSize(Integer size) {
    this.size = size;
    }

    public String getUse() {
    return use;
    }

    public void setUse(String use) {
    this.use = use;
    }

    public Date getCreatedAt() {
    return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
    this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
    return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
    this.updatedAt = updatedAt;
    }


}